﻿/*------------------------------------------------
// File Description: ProductViaSiteTopData DataBase Entity
// Author:			 Crane
// Create Time:		 2022-10-14 13:46:59
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 层压过站参数
    /// </summary>
    [Table(nameof(ProductViaSiteTopData))]
    public class ProductViaSiteTopData : BaseEntity
    {
        private string _barCode = string.Empty;
        private string _layer = string.Empty;

        #region Public Property

        ///<Summary>
        /// 过站ID
        ///</Summary>
        public int ViaSiteId { get; set; }

        ///<Summary>
        /// 条码
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// 层数
        ///</Summary>
        public string Layer
        {
            get { return string.IsNullOrWhiteSpace(_layer) ? string.Empty : _layer; }
            set { _layer = value; }
        }

        ///<Summary>
        /// 腔体
        ///</Summary>
        public int Cavity { get; set; }

        ///<Summary>
        /// 设备设定ID
        ///</Summary>
        public int SettingId { get; set; }

        ///<Summary>
        /// 当前工作状态
        ///</Summary>
        public Enum.TopWorkingStatus WorkingStatus { get; set; }

        ///<Summary>
        /// 台面平均温度
        ///</Summary>
        public decimal? TableAvgTemp { get; set; }

        ///<Summary>
        /// 上真空温度
        ///</Summary>
        public decimal? UpperVacuum { get; set; }

        ///<Summary>
        /// 下真空温度
        ///</Summary>
        public decimal? DownVacuum { get; set; }

        ///<Summary>
        /// 油箱温度
        ///</Summary>
        public decimal? OilTankTemp { get; set; }

        ///<Summary>
        /// 下真空PSG值
        ///</Summary>
        public decimal? DownVacuumPsg { get; set; }

        ///<Summary>
        /// 温度1
        ///</Summary>
        public decimal? Temp1 { get; set; }

        ///<Summary>
        /// 温度2
        ///</Summary>
        public decimal? Temp2 { get; set; }

        ///<Summary>
        /// 温度3
        ///</Summary>
        public decimal? Temp3 { get; set; }

        ///<Summary>
        /// 温度4
        ///</Summary>
        public decimal? Temp4 { get; set; }

        ///<Summary>
        /// 温5
        ///</Summary>
        public decimal? Temp5 { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 层压过站参数
        /// </summary>
        public virtual DbSet<ProductViaSiteTopData> ProductViaSiteTopDatas { get; set; }
    }
}